{% extends 'base/base.html' %}
{% block main %}
<div class="row justify-content-center">
  <div class="col-lg-10 col-xl-8">
    <div class="card p-4">
      <h1 class="h3 card-title mb-3">{{ object.title }}</h1>
      <div class="card-text">
        {{ object.content|safe }}
      </div>
      <div class="mt-24 d-flex gap-2">
        <a class="btn btn-outline-secondary" href="{% url 'main:update' object.id %}">编辑</a>
        <a class="btn btn-danger" href="{% url 'user:delete' object.id %}">删除</a>
      </div>
    </div>
  </div>
</div>


{% endblock %}